package com.fileuptool.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fileuptool.service.FileListService;

import io.swagger.annotations.ApiOperation;

/**
 * 
* @author dinghao
* @ClassName: FileListController 
* @Description: TODO
* @date 2018年3月15日 下午4:40:11 
*
 */

@RestController
public class FileListController {

	@Autowired
	private FileListService fileListService;
	
	@GetMapping("/files")
	@ApiOperation("查看文件清单")
	public List<String> getFiles(){
		List<String> files = fileListService.getFiles();
		return files;
	}
}
